﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using ZTService.Bet;
using ZTService.Modle;
using ZTService.WCF;

namespace ZTService
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            //ServiceBase[] ServicesToRun;
            //ServicesToRun = new ServiceBase[]
            //{
            //        new Service1()
            //};
            //ServiceBase.Run(ServicesToRun);

            InitBet.InitBaby();

            #region 测试数据

            var l = new List<VoteNum>();
            VoteNum i = new VoteNum()
            {
                num = "1",
                value1 = "1,2,3",
                valpos = "3"
            };
            l.Add(i);
            BetDataModel d = new BetDataModel()
            {
                chooseplayname = "位置投注",
                votemode = "常规",
                doublemodel = "中翻倍",
                qiqigun = "重复内容不投注",
                choosenums = l,
                money = "10",
                zhiying = "100",
                zhisun = "100",
                kindid = 7
            };

            var lists=new List<BetDataModel>();
            lists.Add(d);
            var r = new Root
            {
                uid = 527,
                encode = "CB1482910457",
                configs=lists
            };

            #endregion

            ZtBll.StartEngine(r);
            WcfEngine.Start();
            Console.WriteLine("开始测试...");
            Console.ReadLine();
        }
    }
}